#从包到模块
from api import login
#从包.模块到工具
from api.login import login
#测试数据
test_data=[
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]
#列表获取元素
for i in test_data:
    tel = i.get("username")

    res = login(tel)
    print(res)

    if tel == "13488888888":
        assert "账号正确" == res
    else:
        assert "账号错误" == res